# lib构建
FROM zhu-ying-docker.pkg.coding.net/kszy/public/python:3.10-slim
# 设置用户为root
USER root
# 设置PYTHON编码
ENV PYTHONIOENCODING=utf-8
# pip配置
RUN pip3 config set global.index-url https://pypi-1703563938750:504b6dbe8de1f29495ad7efc6012a42a08e9cb2b@zhu-ying-pypi.pkg.coding.net/kszy/pypi/simple
# 安装依赖
RUN pip3 install pysam==0.* pydantic==2.* scikit-learn==1.* pyarmor==8.*
# 安装当前项目
# ADD openanno_snv/ /data/openanno_snv/
# RUN cd /data && pyarmor gen -i -r -O dist openanno_snv
ADD openanno_snv/ /data/dist/openanno_snv/

ADD setup.py setup.cfg /data/dist/
RUN cd /data/dist && pip3 install . && rm -rf /data
